body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: #1a1a1a;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
}

.tabs {
    display: flex;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 16px;
}

.tab.active {
    border-bottom: 2px solid #4a90e2;
    color: #4a90e2;
}

.form-container form {
    display: none;
}

.form-container form.active {
    display: block;
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 100%;
    padding: 8px;
    border: 1px solid #333;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    box-sizing: border-box;
}

button {
    width: 100%;
    padding: 10px;
    background: #4a90e2;
    border: none;
    border-radius: 4px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #357abd;
}

.battle-loading {
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

.battle-result {
    padding: 20px;
}

.battle-rounds {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
}

.round-info {
    border: 1px solid #ddd;
    margin: 5px 0;
    padding: 10px;
}

.action-info {
    margin: 5px 0;
    padding: 5px;
    background: #f9f9f9;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.battle-result-container {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 20px;
    border-radius: 10px;
    max-width: 800px;
    margin: 0 auto;
}

.winner-info {
    text-align: center;
    padding: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #444;
}

.winner-info h3 {
    color: #ffd700;
    font-size: 24px;
    margin-bottom: 10px;
}

.battle-rounds {
    max-height: 400px;
    overflow-y: auto;
}

.round-info {
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
    padding: 15px;
    border-radius: 5px;
}

.round-info h4 {
    color: #3498db;
    margin-bottom: 10px;
}

.action-info {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px;
    margin: 5px 0;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-info .skill {
    color: #e74c3c;
}

.action-info .attack {
    color: #2ecc71;
}

.action-info .critical {
    color: #f1c40f;
    font-weight: bold;
}

.damage {
    font-weight: bold;
    color: #e74c3c;
} 